﻿using Developer.Core.FrameWork.GlobalVar;
using Developer.Core.FrameWork.Pollys.Options;
using System;

namespace Developer.Core.FrameWork.MiddlePlatformService.Options
{
    /// <summary>
    /// 中台配置选项
    /// </summary>
    public class MiddlePlatformOptions
    {
        /// <summary>
        /// http客户端名称
        /// </summary>
        public string HttpClientName { get; set; }

        /// <summary>
        /// 熔断降级选项
        /// </summary>
        public Action<PollyHttpClientOptions> pollyHttpClientOptions { get; }

        public MiddlePlatformOptions()
        {
            this.HttpClientName = GlobalVars.HttpName;
            this.pollyHttpClientOptions = option => { };
        }
    }
}
